package cn.edu.scau.cmi.chenxiaoqin.composite.safe;

import java.util.ArrayList;
import java.util.List;

public class SafeTeam extends SafeOrganization{
	private String teamName;
	private List<SafeOrganization> teams;
	public SafeTeam(String n) {
		teams = new ArrayList<SafeOrganization>();
		teamName=n;
	}
	public void addPerson(SafeOrganization person) {
		teams.add(person);
	}
	public void removePerson(SafeOrganization person) {
		teams.remove(person);
	}
	@Override
	public String getNAME() {
		// TODO Auto-generated method stub
		return teamName;
	}
}
